﻿using Marmat.Template.WinForm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 测试项目
{
    public partial class Form2 : Marmat.Forms.Skin.Form
    {
        public Form2()
        {
            InitializeComponent();

        }

        private void topMenu1_MenuItemClick(TopMenuItem menuItem)
        {
            var b = new LeftMenuItem();
            b.Caption = "采购管理";
            b.Icon = Properties.Resources.图表;
            var item = new List<LeftMenuItem>();
            for (int i = 0; i < 5; i++)
            {
                var c = new LeftMenuItem();
                c.Caption = menuItem.Caption + "采购" + i;
                c.Icon = Properties.Resources.图表;
                item.Add(c);
            }

            var t = new LeftMenuItem();
            t.Caption = "相亲管理";
            t.Icon = Properties.Resources.图表;
            for (int i = 0; i < 5; i++)
            {
                var c = new LeftMenuItem();
                c.Caption = menuItem.Caption + "找对象";
                c.Icon = Properties.Resources.图表;
                item.Add(c);
            }
            item.Add(b);
            item.Add(t);
            this.leftMenu1.CoverControls(item.ToArray());
        }
    }
}
